package cat20032010;
/**
*
* @author aDeeY
*/
import java.lang.*;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;

public class WaiterLogin extends javax.swing.JFrame {

    public WaiterLogin() {
        initComponents();
        setLocationRelativeTo(null);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jtfID = new javax.swing.JTextField();
        jtfPassword = new javax.swing.JPasswordField();
        jbtnLogin = new javax.swing.JButton();
        jbtnCancel = new javax.swing.JButton();
        background = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setLayout(null);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/button/WaiterLogin.png"))); // NOI18N
        jPanel1.add(jLabel1);
        jLabel1.setBounds(10, 10, 424, 110);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 204));
        jLabel2.setText("ID");
        jPanel1.add(jLabel2);
        jLabel2.setBounds(80, 130, 53, 40);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 204));
        jLabel3.setText("Password");
        jPanel1.add(jLabel3);
        jLabel3.setBounds(60, 180, 87, 40);

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabel4.setForeground(new java.awt.Color(255, 255, 204));
        jLabel4.setText(":");
        jPanel1.add(jLabel4);
        jLabel4.setBounds(160, 130, 21, 40);

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabel5.setForeground(new java.awt.Color(255, 255, 204));
        jLabel5.setText(":");
        jPanel1.add(jLabel5);
        jLabel5.setBounds(160, 180, 21, 40);

        jtfID.setFont(new java.awt.Font("Tahoma", 0, 14));
        jPanel1.add(jtfID);
        jtfID.setBounds(180, 130, 210, 33);

        jtfPassword.setText("jPasswordField1");
        jtfPassword.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jtfPasswordFocusGained(evt);
            }
        });
        jPanel1.add(jtfPassword);
        jtfPassword.setBounds(180, 180, 210, 35);

        jbtnLogin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cat20032010/logIn.png"))); // NOI18N
        jbtnLogin.setBorderPainted(false);
        jbtnLogin.setContentAreaFilled(false);
        jbtnLogin.setDefaultCapable(false);
        jbtnLogin.setFocusPainted(false);
        jbtnLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnLoginActionPerformed(evt);
            }
        });
        jPanel1.add(jbtnLogin);
        jbtnLogin.setBounds(230, 230, 110, 65);

        jbtnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cat20032010/Cancel.png"))); // NOI18N
        jbtnCancel.setBorderPainted(false);
        jbtnCancel.setContentAreaFilled(false);
        jbtnCancel.setDefaultCapable(false);
        jbtnCancel.setFocusPainted(false);
        jbtnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnCancelActionPerformed(evt);
            }
        });
        jPanel1.add(jbtnCancel);
        jbtnCancel.setBounds(330, 230, 120, 63);

        background.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cat20032010/shipwreck(450X300).jpg"))); // NOI18N
        jPanel1.add(background);
        background.setBounds(0, 0, 450, 300);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jtfPasswordFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfPasswordFocusGained
        jtfPassword.setText("");
    }//GEN-LAST:event_jtfPasswordFocusGained

    private void jbtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnCancelActionPerformed
        dispose();
    }//GEN-LAST:event_jbtnCancelActionPerformed

    private void jbtnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnLoginActionPerformed

    }//GEN-LAST:event_jbtnLoginActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new WaiterLogin().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel background;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JButton jbtnCancel;
    private javax.swing.JButton jbtnLogin;
    private javax.swing.JTextField jtfID;
    private javax.swing.JPasswordField jtfPassword;
    // End of variables declaration//GEN-END:variables

}
